import {Text, View} from 'native-base';
import Icon from '../Icon';
import {InterfaceViewProps} from 'native-base/lib/typescript/components/basic/View/types';
import React from 'react';

export type NoDataType = InterfaceViewProps & {
  noDataString?: string;
};
export default function (params: NoDataType) {
  return (
    <View justifyContent={'center'} alignItems={'center'}>
      <Icon
        size={'auto'}
        iconName={'\ue602'}
        fontSize={'6xl'}
        color={'dark.600'}
        p={0}
        m={0}></Icon>
      <Text color={'dark.500'} fontSize={'sm'}>
        {params.noDataString ? params.noDataString : '暂无数据'}
      </Text>
    </View>
  );
}
